package com.jun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jun.pojo.entity.SysOrderUser;
import com.jun.pojo.vo.SysOrderUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysOrderUserMapper extends BaseMapper<SysOrderUser> {

  /**
   * 根据订单id查询 SysOrderUser 集合
   * @param orderId 根据订单id查询
   */
  SysOrderUserVo selectByOrderId(@Param("orderId") Integer orderId);

  /**
   * 根据用户id查询 SysOrderUser 集合
   * @param userId 用户id
   */
  List<SysOrderUserVo> selectByUserId(@Param("userId") Integer userId);
}


